import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/other',
    component: () => import('../views/OtherView.vue')
  },
  {
    path: '/a',
    component: () => import('../views/Aview.vue')
  },
  {
    path: '/b',
    component: () => import('../views/BView.vue')
  },
  {
    path: '/c',
    component: () => import('../views/CView.vue')
  },
  {
    path: '/d',
    component: () => import('../views/DView.vue')
  },
  {
    path: '/e',
    component: () => import('../views/EView.vue')
  },
  {
    path: '/f',
    component: () => import('../views/FView.vue')
  },
  {
    path: '/g',
    component: () => import('../views/GView.vue')
  },
  {
    path: '/h',
    component: () => import('../views/HView.vue')
  },
  {
    path: '/i',
    component: () => import('../views/IView.vue')
  },
  {
    path: '/j',
    component: () => import('../views/JView.vue')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
